package org.thirdHero.core.util;

import java.util.Properties;

/**
 * 系统操作工具类
 */
public class SystemUtil {
    public static final String Mac_OS_X = "Mac OS X";
    public static final String WINDOWS = "Windows";
    /**
     * 获得当前操作系统
     * @return
     */
    public static String getSystem(){
        Properties props = System.getProperties();
        return props.getProperty("os.name");
    }

    public static void main(String[] args) {
        String system = getSystem();
        System.out.println(system);
    }
}
